home *** CD-ROM | disk | FTP | other *** search
/ The SelectWare System Volume 5 #3 / Selectware - The Ultimate Software Demonstration System - Selectware.ISO / bor10010 / copyfile.swt / TRIAL\BOXTEXT.TXT < prev    next >
Encoding:
Text File  |  1993-03-10  |  18.9 KB  |  1,272 lines

  1. Welcome to 
  2. ObjectVision 
  3. First Look!
  4.  
  5. What you're about to 
  6. see is not a 
  7. demonstration -- it's a 
  8. real, live working copy 
  9. of ObjectVision.  And 
  10. now you'll use it to 
  11. create an actual 
  12. ObjectVision 
  13. application!  Just 
  14. remember these keys:
  15.  
  16. * Whenever you're 
  17. ready to take the next 
  18. step, press F2 for more 
  19. instructions.
  20.  
  21. * To redisplay the 
  22. previous instruction, 
  23. hold down the ALT key 
  24. and press F2.
  25.  
  26. To continue now, press 
  27. the F2 key...
  28. x
  29.  
  30. NOTE:  
  31. How to cancel 
  32. First Look.
  33.  
  34. To cancel this tutorial at 
  35. any time:
  36.  
  37. 1) Close any tools that 
  38. you're using (such as the 
  39. Form Tool or Tree 
  40. Tool).
  41.  
  42. 2) Press the F12 key.  
  43. You will be asked to 
  44. confirm that you wish to 
  45. cancel.
  46.  
  47. To continue now, press 
  48. the F2 key...
  49. x
  50.  
  51. What you'll do in the 
  52. next few minutes.
  53.  
  54. ObjectVision makes 
  55. creating Windows & 
  56. OS/2 applications as 
  57. easy as A-B-C:
  58.  
  59. A. APPLICATION 
  60. INTERFACE. 
  61.  
  62. First, you'll build your 
  63. Application Interface by 
  64. placing objects (fields, 
  65. buttons, tables) on a 
  66. form and changing their 
  67. size, shape and color to 
  68. your liking.
  69.  
  70. To continue, press F2.
  71. x
  72.  
  73. (A-B-Cs continued...)
  74.  
  75. B. BUSINESS RULES. 
  76.  
  77. Next, you'll embed logic 
  78. into your application by 
  79. creating "value" and 
  80. "event" trees that define 
  81. how your application 
  82. will work.
  83.  
  84. C. CONNECTIONS. 
  85.  
  86. Finally, you'll link the 
  87. fields in your application 
  88. to a database.
  89.  
  90. To continue, press F2.
  91. x
  92. ACTION: 
  93. Start by activating the 
  94. TOOLS Menu.
  95.  
  96. 1) Click on the TOOLS 
  97. option on the menu bar 
  98. above. 
  99.  
  100. 2) From the TOOLS 
  101. menu select the FORM 
  102. tool: (TOOLS|FORM)  
  103.  
  104. This lets you create a 
  105. basic form on which 
  106. you'll add objects and 
  107. logic. Later, you'll link 
  108. those objects to a 
  109. database.
  110.  
  111. We've identified each 
  112. button on the Form 
  113. Tool's Object Bar to let 
  114. you more easily identify 
  115. the icons you need to 
  116. click. 
  117.  
  118. To continue, press F2.
  119. x
  120.  
  121. NOTE:
  122. This form shows you an 
  123. example of what you'll 
  124. accomplish next.
  125.  
  126. You'll be creating two 
  127. fields, SALE AMOUNT 
  128. and COMMISSION, 
  129. defining their properties 
  130. and calculating the 
  131. commission amount 
  132. through the use of a 
  133. value tree.
  134.  
  135. To continue, press F2.
  136. x
  137.  
  138. ACTION:  
  139. Next, create, name and 
  140. draw a Field.
  141.  
  142. 1) Click on the FIELD 
  143. icon.
  144.  
  145. Then, press F2...
  146. x
  147.  
  148. ACTION:  
  149. Name and position 
  150. the field.
  151.  
  152. 2) Name it: 
  153.  
  154.      SALE AMOUNT 
  155.  
  156. Then click OK or press 
  157. Enter.
  158.  
  159. Now, draw the FIELD.
  160.  
  161. 3) Click on the form 
  162. wherever you want your 
  163. field to appear.
  164.  
  165. To continue, press F2.
  166. x
  167.  
  168. Define the properties of 
  169. your object.
  170.  
  171. The handles at each 
  172. corner of your new 
  173. FIELD let you stretch 
  174. the FIELD to any size 
  175. you want. 
  176.  
  177. To operate those 
  178. handles, click on and 
  179. drag them with your 
  180. mouse.
  181.  
  182. To continue, press F2.
  183. x
  184.  
  185. ACTION:
  186. Select object properties.
  187.  
  188. 1) To find out what 
  189. properties are available 
  190. for your field object, 
  191. place your mouse arrow 
  192. INSIDE the new Sale 
  193. Amount field and click 
  194. your RIGHT mouse 
  195. button. 
  196.  
  197. All the object properties 
  198. available will be 
  199. displayed.
  200.  
  201. 2) Click on the COLOR 
  202. option.
  203.  
  204. Then, press F2 to 
  205. continue...
  206. x
  207.  
  208. ACTION:  
  209. Change the object's 
  210. color.
  211.  
  212. 1) Under LABEL, use 
  213. the combo box to 
  214. highlight the color you 
  215. want for the field's text 
  216. label.  
  217.  
  218. 2) Click on the OK 
  219. button to save your 
  220. changes.
  221.  
  222. To continue, press F2.
  223. x
  224.  
  225. ACTION:  
  226. Change the field type.
  227.  
  228. 1) Again, place your 
  229. mouse arrow INSIDE 
  230. the Sale Amount field 
  231. and click your RIGHT 
  232. mouse button.
  233.  
  234. 2) Select FIELD TYPE 
  235. from the properties 
  236. menu. 
  237.  
  238. 3) Change Field Type to 
  239. CURRENCY under the 
  240. column of Numeric 
  241. types. 
  242.  
  243. 4) Click OK to accept 
  244. your changes.  
  245.  
  246. Then, press F2 to 
  247. continue.
  248. x
  249.  
  250. ACTION:  
  251. Create another field.
  252.  
  253. 1) Click the FIELD 
  254. button on the Object 
  255. Bar.
  256.  
  257. 2) Name the new field 
  258. COMMISSION, then 
  259. click OK.
  260.  
  261. 3) Position your mouse 
  262. pointer to the right of 
  263. the Sale Amount field 
  264. and CLICK to place the 
  265. field.
  266.  
  267. Then, press F2 to 
  268. continue.
  269. x
  270.  
  271. ACTION:  
  272. Change the Field Type.
  273.  
  274. 1) Place your mouse 
  275. arrow INSIDE the 
  276. Commission field and 
  277. click your RIGHT 
  278. mouse button.
  279.  
  280. 2) Select FIELD TYPE 
  281. from the properties 
  282. menu. 
  283.  
  284. 3) Change Field Type to 
  285. CURRENCY under the 
  286. column of Numeric 
  287. types. 
  288.  
  289. 4) Click OK to accept 
  290. your changes.  Then, 
  291. press F2 to continue.
  292. x
  293.  
  294. NOTE:  
  295. See ObjectVision 2.1 in 
  296. a real-life application.
  297.  
  298. In this Trial Disk, we're 
  299. using a fictional auction 
  300. house, AuctionRAMa, 
  301. to demonstrate the 
  302. power of ObjectVision 
  303. applications. 
  304.  
  305. First, we'll add logic to 
  306. our form and calculate 
  307. the commission the 
  308. auction house earns on 
  309. a sale by creating a 
  310. VALUE TREE for the 
  311. commission field. The 
  312. commission amount will 
  313. be based on an item's 
  314. sales price.
  315.  
  316. To continue, press F2.
  317. x
  318.  
  319. About VALUE TREES 
  320. and EVENT TREES...
  321.  
  322. ObjectVision uses two 
  323. kinds of decision trees 
  324. that let you program 
  325. logic into your 
  326. application:
  327.  
  328. VALUE TREE.  Logic 
  329. that automatically 
  330. calculates a value for a 
  331. specific field, such as a 
  332. sales commission. 
  333.  
  334. EVENT TREE.  Logic 
  335. that causes other events 
  336. to happen, such as 
  337. displaying another form. 
  338.  
  339. To continue, press F2.
  340. x
  341.  
  342. ACTION:  
  343. To access the TREE 
  344. TOOL, simply double 
  345. click on the 
  346. COMMISSION field.  
  347.  
  348. (You could also access 
  349. this field's properties by 
  350. using your RIGHT 
  351. mouse button and then 
  352. selecting VALUE 
  353. TREE from the 
  354. properties menu.)
  355.  
  356. Now let's create 
  357. a Tree!  
  358.  
  359. Press F2 to continue...
  360. x
  361.  
  362. NOTE:
  363. The Tree Tool 
  364. Object Bar.
  365.  
  366. Since we've accessed 
  367. the Tree Tool, you may 
  368. have noticed that the 
  369. Object Bar changed. 
  370.  
  371. It now displays different 
  372. buttons. (The first 
  373. button, which looks like 
  374. a left-point arrow, 
  375. closes the tool.)  
  376.  
  377. To continue, press F2.
  378. x
  379.  
  380. ACTION:
  381. Build a value tree.
  382.  
  383. 1) First, click once on 
  384. the button which points 
  385. upwards (fourth from 
  386. the left).  This will make 
  387. your value tree larger 
  388. and a little easier to see.
  389.  
  390. 2) Next, Click on the 
  391. second button from the 
  392. left. This tells 
  393. ObjectVision that we 
  394. want to add a "branch" 
  395. to our Tree.
  396.  
  397. Press F2 to continue.
  398. x
  399.  
  400. 1) Find the field called 
  401. SALE AMOUNT on 
  402. the list of fields.  Double 
  403. click on it. 
  404.  
  405. You just created the 
  406. first branch of your 
  407. Value Tree! The logic 
  408. we want to use here 
  409. could be expressed like 
  410. this:
  411.  
  412. IF SALE AMOUNT 
  413.      >500     
  414. THEN 
  415.      COMMISSION= 
  416.      SALE AMOUNT 
  417.      * 0.15
  418. ELSE
  419.      COMMISSION= 
  420.      MINIMUM 
  421.      COMMISSION
  422. END IF
  423.  
  424. To continue, press F2.
  425. x
  426.  
  427. ACTION:
  428. Draw your conclusion.
  429.  
  430. 1) Next, click the 
  431. Conclusion button 
  432. (upside down triangle) 
  433. and give your first 
  434. condition. Type: 
  435.  
  436.      >500  
  437.  
  438. 2) Then click on the OK 
  439. button.  
  440.  
  441. 3) For your conclusion, 
  442. type: 
  443.  
  444.     +Sale Amount*0.15 
  445.  
  446. (It's important that you 
  447. begin this expression 
  448. with a + sign.)  
  449.  
  450. 4) Click the OK button 
  451. to accept your entry.  
  452. Then, press F2.
  453. x
  454.  
  455. NOTE:
  456. Whenever you're 
  457. specifying fields, instead 
  458. of typing field names, 
  459. you can click on the 
  460. FIELD button to display 
  461. and select any of the 
  462. available fields.
  463.  
  464. This way, you don't 
  465. have to memorize your 
  466. field names.
  467.  
  468. To continue now, press 
  469. the F2 key.
  470. x
  471.  
  472. ACTION:
  473. Now, make your other 
  474. conclusion.  (Make sure 
  475. your first conclusion has 
  476. a dotted line border 
  477. around it)
  478.  
  479. 1) Click the 
  480. CONCLUSION (upside 
  481. down triangle) button 
  482. again.
  483.  
  484. 2) Leave the expression 
  485. OTHERWISE on the 
  486. Condition line and click 
  487. the OK button.
  488.  
  489. 3) In the Conclusion 
  490. window, enter the 
  491. expression: 
  492.  
  493. +Minimum Commission 
  494.  
  495. 4) Finally, click the OK 
  496. button and press F2 to 
  497. continue.
  498. x
  499.  
  500. NOTE:
  501. Your value tree is 
  502. complete!
  503.  
  504. Displayed visually, your 
  505. logic works as follows:  
  506.  
  507. If the first condition is 
  508. met (Sale Amount 
  509. >500), the value of 
  510. Commission will be set 
  511. to 15% of the sale 
  512. amount.
  513.  
  514. If the first condition is 
  515. NOT met, then the 
  516. value of Commission 
  517. will be set to the value 
  518. of the Minimum 
  519. Commission field. 
  520.  
  521. To continue, press F2.
  522.  
  523. Now, see your logic in 
  524. action.
  525.  
  526. 1) First, close the TREE 
  527. TOOL by clicking on 
  528. the CLOSE TOOL 
  529. button (looks like a left-
  530. pointing arrow). 
  531.  
  532. 2) Next, close the 
  533. FORM TOOL by 
  534. clicking once again on 
  535. the CLOSE TOOL 
  536. button.  
  537.  
  538. Press F2 to continue.
  539. x
  540.  
  541. 1) Click in the SALE 
  542. AMOUNT field and 
  543. enter the value:
  544.  
  545.      200
  546.  
  547. After pressing <Enter>, 
  548. a Scratchpad prompt 
  549. will automatically 
  550. appear and prompt you 
  551. for a MINIMUM 
  552. COMMISSION value.  
  553.  
  554. 2) Inside the scratchpad 
  555. window, type a 
  556. minimum commission: 
  557.  
  558.      75  
  559.  
  560. After pressing ENTER, 
  561. ObjectVision returns to 
  562. the main form and the 
  563. commission amount is 
  564. displayed. 
  565.  
  566. To continue, press F2.
  567. x
  568.  
  569. NOTE:
  570. ObjectVision's 
  571. Inference Engine.
  572.  
  573. When you entered a sale 
  574. amount, notice how 
  575. ObjectVision 
  576. automatically prompted 
  577. you for the Minimum 
  578. Commission value. This 
  579. field isn't on your form -
  580. - but its value was 
  581. needed for the value 
  582. tree to be evaluated. 
  583.  
  584. ObjectVision uses a 
  585. "scratchpad" form to 
  586. display this field while 
  587. guiding you through to 
  588. completion.  Imagine 
  589. how much code you'd 
  590. normally have to write 
  591. to get this functionality!
  592.  
  593. To continue, press F2.
  594. x
  595.  
  596. ACTION:
  597. Automatic Update.
  598.  
  599. 1) In the Sale Amount 
  600. field, change the value 
  601. to:
  602.  
  603.      700  
  604.  
  605. 2) Hit the ENTER key 
  606. and notice how the 
  607. commission amount is 
  608. re-calculated 
  609. automatically!
  610.  
  611. Then, press F2 to 
  612. continue.
  613. x
  614.  
  615. Now for the "C" part: 
  616. making connections to 
  617. data.
  618.  
  619. You're now two-thirds 
  620. of the way finished! 
  621.  
  622. You've built the 
  623. foundation of your 
  624. application by creating 
  625. your Application 
  626. Interface. 
  627.  
  628. Then you've determined 
  629. how your application 
  630. will work by outlining 
  631. your Business Rules 
  632. using Event and Value 
  633. trees. 
  634.  
  635. Now it's time for "C" -- 
  636. connecting to a 
  637. database. 
  638.  
  639. Press F2 to continue.
  640. x
  641.  
  642. Our goal is to create a 
  643. new form, add a table 
  644. object and link that table 
  645. to a database.  
  646.  
  647. ACTION:
  648. First, make sure that 
  649. you're in the FORM 
  650. tool.
  651.  
  652. 1) Click on the TOOLS 
  653. option on the menu bar 
  654. above. 
  655.  
  656. 2) From the TOOLS 
  657. menu select the FORM 
  658. option.
  659.  
  660. Then, press F2 to 
  661. continue.
  662. x
  663.  
  664. NOTE:
  665. This form shows you an 
  666. example of what you'll 
  667. accomplish next.
  668.  
  669. You'll be creating a 
  670. table object along with a 
  671. button called TOP. 
  672.  
  673. Then, you'll see how an 
  674. EVENT TREE is used 
  675. to pull data from a 
  676. Paradox table.
  677.  
  678. To continue, press F2.
  679. x
  680.  
  681. ACTION:
  682. Now, create a new 
  683. form.
  684.  
  685. 1) Click on the FORM 
  686. menu at the top of the 
  687. screen.
  688.  
  689. 2) From the FORM 
  690. menu select the NEW 
  691. option.
  692.  
  693. 3) Name your new 
  694. form, ITEMS.  Click 
  695. OK (or press the 
  696. <Enter> key) to accept 
  697. your entry.
  698.  
  699. To continue, press F2.
  700. x
  701.  
  702. Next, expand the new 
  703. form.
  704.  
  705. We want to make this 
  706. form larger than the 
  707. default size, so:
  708.  
  709. 1) Drag the form close 
  710. to the upper left corner 
  711. of the ObjectVision 
  712. window.
  713.  
  714. 2) Then, drag the lower 
  715. right corner of the new 
  716. form to make the new 
  717. form as large as 
  718. possible.
  719.  
  720. To continue, press F2.
  721. x
  722.  
  723. ACTION:
  724. Add your first table.
  725.  
  726. 1) Click the table button 
  727. (looks like a table grid) 
  728. on the Object Bar.
  729.  
  730. 2) Give the table a 
  731. name. (For this exercise, 
  732. the default name, 
  733. "Table1", is fine.).  
  734. Click the OK button.
  735.  
  736. 3) Click the mouse 
  737. close to the upper-left 
  738. corner of your new 
  739. form.  The new table 
  740. object will appear.
  741.  
  742. To continue, press F2.
  743. x
  744.  
  745. ACTION:
  746. Resize the first column.
  747.  
  748. 1) Drag the single 
  749. square handle on the 
  750. BOTTOM of the table 
  751. object to increase its 
  752. height vertically.  Drag 
  753. it almost to the bottom 
  754. of the form.  As you do, 
  755. ObjectVision shows you 
  756. how many rows your 
  757. table will contain.
  758.  
  759. Make sure that you drag 
  760. the handle on the 
  761. BOTTOM of the object.  
  762. If you accidentally click 
  763. somewhere else on the 
  764. table object, 4 handles 
  765. may appear on the 
  766. corners.  To redisplay 
  767. the BOTTOM handle, 
  768. click on the object title 
  769. "Table1".
  770. x
  771.  
  772.  
  773. 2) Now, click your 
  774. mouse on the column 
  775. label "Col1" so that 4 
  776. corner handles appear.
  777.  
  778. 3) Using the handles, 
  779. widen the first column 
  780. of the table -- it should 
  781. occupy at least 1/3rd of 
  782. the form.  
  783.  
  784. Press F2 to continue.
  785. x
  786.  
  787. ACTION:
  788. Add two more columns.
  789.  
  790. 1) Click on the title, 
  791. "Table1", so that a 
  792. triangle shaped handle 
  793. appears on the right-
  794. side of the table.
  795.  
  796. 2) Click and drag this 
  797. triangle handle to the 
  798. right to create a 
  799. SECOND column.  This 
  800. column should occupy 
  801. the next 1/3 of your 
  802. form's width.
  803.  
  804. 3) Once you've 
  805. positioned your second 
  806. column, create a 
  807. THIRD column by 
  808. clicking and dragging 
  809. the triangle as before.
  810.  
  811. Press F2 to continue.
  812. x
  813.  
  814. ACTION:
  815. Size your columns.
  816.  
  817. 1) Click on the column 
  818. headings and notice 
  819. how the handles change.
  820.  
  821. 2) Next, drag the handle 
  822. in the direction you 
  823. want. The column size 
  824. and relative size of the 
  825. table will change 
  826. accordingly.
  827.  
  828. When you're finished, 
  829. press F2 to continue.
  830. x
  831.  
  832. NOTE:
  833. If you have too many 
  834. columns (we only want 
  835. three), here's how to 
  836. DELETE a column:
  837.  
  838. 1) Click on the 
  839. unwanted column's 
  840. heading so that the four 
  841. corner handles appear 
  842. on that column.
  843.  
  844. 2) Drag the upper right 
  845. column handle to the 
  846. left, compressing the 
  847. column width to zero. 
  848.  
  849. 3) ObjectVision will 
  850. then ask if you want the 
  851. column deleted.
  852.  
  853. To continue, press F2.
  854. x
  855.  
  856. ACTION:
  857. Add a scroll bar.
  858.  
  859. 1) Click on the table 
  860. heading ("Table1", if 
  861. you originally chose the 
  862. default name.)
  863.  
  864. 2) Click the RIGHT 
  865. mouse button to access 
  866. table properties.
  867.  
  868. 3) Click on the 
  869. SCROLLBAR option 
  870. and a scrollbar will be 
  871. added to the right-hand 
  872. side of your table.
  873.  
  874. To continue, press F2.
  875. x
  876.  
  877. ACTION:
  878. Link your table to a 
  879. Paradox database. 
  880.  
  881. 1) Click on the LINK 
  882. TOOL button (far right 
  883. side of the Object Bar; 
  884. looks like a chain).
  885.  
  886. 2) The DATA LINKS 
  887. dialog will be displayed 
  888. (note the various 
  889. database formats 
  890. available). With 
  891. Paradox as the default, 
  892. click on the CREATE 
  893. button.
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902. Press F2 to continue.
  903. x
  904.  
  905. ACTION:
  906. Name the link.
  907.  
  908. 1) In the LINK NAME 
  909. field, type: 
  910.  
  911.      TABLE 
  912.  
  913. This will be the name 
  914. used to refer to this 
  915. particular link.
  916.  
  917. Then, press F2.
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. CLICK HERE to 
  930. redisplay instructions.
  931. x
  932.  
  933. ACTION:
  934. Specify the database 
  935. table name.
  936.  
  937. 1) In the field labeled 
  938. PARADOX TABLE, 
  939. type the filename: 
  940.  
  941.      BIDS
  942.  
  943. BIDS is a table that has 
  944. already been created for 
  945. this example.
  946.  
  947. Then, press F2 to 
  948. continue.
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957. CLICK HERE to 
  958. redisplay instructions.
  959. x
  960.  
  961. ACTION:
  962. Link to the Table.
  963.  
  964. 1) Click the CONNECT 
  965. button on the right side 
  966. of the Paradox Link 
  967. Creation dialog and 
  968. ObjectVision will 
  969. connect to the BIDS 
  970. database table. 
  971.  
  972. (Note how the fields 
  973. from that table are 
  974. automatically displayed.  
  975. If you pressed <Enter> 
  976. after typing the table 
  977. name BIDS, the 
  978. database fields will 
  979. already be displayed.)
  980.  
  981. To continue, press F2.
  982.  
  983.  
  984.  
  985. CLICK HERE to 
  986. redisplay instructions.
  987. x
  988.  
  989. ACTION:
  990. Connect the first 
  991. ObjectVision field to 
  992. your Paradox
  993. table:
  994.  
  995. 1)  Click on the LINK 
  996. CREATION dialog and 
  997. find the window that 
  998. displays ObjectVision 
  999. fields on the right side.
  1000.  
  1001. 2) Double click on the 
  1002. field labeled COL1. 
  1003.  
  1004. (ObjectVision assigns 
  1005. this field to correspond 
  1006. with the BIDDER field 
  1007. from the database.) 
  1008.  
  1009. To continue, press F2.
  1010.  
  1011.  
  1012.  
  1013. CLICK HERE to 
  1014. redisplay instructions.
  1015. x
  1016.  
  1017. ACTION:
  1018. Connect the other fields 
  1019. from the table object.
  1020.  
  1021. 1) Follow the same 
  1022. procedure with the fields 
  1023. COL2 and COL3.
  1024.  
  1025. Double click on them in 
  1026. the ObjectVision fields 
  1027. list. 
  1028.  
  1029. To continue,
  1030. press F2.
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041. CLICK HERE to 
  1042. redisplay instructions.
  1043. x
  1044.  
  1045.  
  1046. Once you've linked all 
  1047. three database fields to 
  1048. the ObjectVision fields 
  1049. (Col1, Col2 and Col3), 
  1050. click on the OK button. 
  1051.  
  1052. Then, press F2 to 
  1053. continue.
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. CLICK HERE to 
  1070. redisplay instructions.
  1071. x
  1072.  
  1073. ACTION:
  1074. Link automatic buttons.
  1075.  
  1076. To speed development, 
  1077. ObjectVision 
  1078. automatically creates 
  1079. control buttons for a 
  1080. link. Let's create a single 
  1081. button for our new link:
  1082.  
  1083. 1) Click the box next to 
  1084. the word TOP.
  1085.  
  1086. 2) Click the OK button.
  1087.  
  1088. To continue, press F2.
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097. CLICK HERE to 
  1098. redisplay instructions.
  1099. x
  1100.  
  1101. ACTION:
  1102. Complete the linking.
  1103.  
  1104. 1) Since you're finished 
  1105. defining this link, click 
  1106. the OK button on the 
  1107. DATA LINKS dialog.
  1108.  
  1109. 2) The TOP button was 
  1110. automatically created 
  1111. for you on your form.  
  1112. To find it, click on the 
  1113. down-arrow button of 
  1114. the ObjectVision 
  1115. window's scroll bar.  
  1116.  
  1117. 3) Then, click and drag 
  1118. the new TOP button 
  1119. and move it up on the 
  1120. form so it's close to the 
  1121. table.
  1122.  
  1123. To continue, press F2.
  1124. x
  1125.  
  1126. ACTION:
  1127. View the Event Tree.
  1128.  
  1129. ObjectVision 
  1130. automatically created an 
  1131. event tree for your new 
  1132. TOP button. 
  1133.  
  1134. 1) To see it, double-
  1135. click on the TOP 
  1136. button.
  1137.  
  1138. When you click on this 
  1139. button while running 
  1140. your application, the 
  1141. actions described in the 
  1142. conclusion node of this 
  1143. event tree will be taken.  
  1144. In this case, when you 
  1145. click on this button, 
  1146. ObjectVision will move 
  1147. to the top of the 
  1148. database defined in the 
  1149. TABLE link.
  1150.  
  1151. To continue, press F2.
  1152. x
  1153.  
  1154. Now you can actually 
  1155. use your new table 
  1156. object.
  1157.  
  1158. ACTION:
  1159. First, you must close all 
  1160. your TOOLS:
  1161.  
  1162. 1) To close the TREE 
  1163. TOOL, click on the 
  1164. CLOSE TOOL button 
  1165. at the far left of the 
  1166. Object Bar.
  1167.  
  1168. 2) Next, close the 
  1169. FORM TOOL by 
  1170. clicking again on the 
  1171. CLOSE TOOL 
  1172. BUTTON.
  1173.  
  1174. 3) Now click the TOP 
  1175. button and watch the 
  1176. data appear!
  1177.  
  1178. Press F2 to continue.
  1179. x
  1180.  
  1181. NOTE:
  1182. If any cells show 
  1183. #######, your column 
  1184. isn't wide enough to 
  1185. display all the text. 
  1186.  
  1187. Since we're only using 
  1188. part of the screen for 
  1189. ObjectVision during this 
  1190. First Look, some of the 
  1191. data may appear as 
  1192. #######.
  1193.  
  1194. If you wish, go back to 
  1195. the FORM TOOL, click 
  1196. on any of the cells and 
  1197. increase or decrease 
  1198. their width.
  1199.  
  1200. Then, close the Form 
  1201. Tool and try again.
  1202.  
  1203. To continue, press F2.
  1204. x
  1205. This is just the 
  1206. beginning!
  1207.  
  1208. In this First Look, you 
  1209. experienced how easily 
  1210. you can build a 
  1211. Windows application 
  1212. with ObjectVision. 
  1213.  
  1214. In the Sample 
  1215. Application -- 
  1216. AuctionRAMa -- you'll 
  1217. discover ObjectVision's 
  1218. flexible linking powers 
  1219. and how many different 
  1220. ways it can be used. 
  1221.  
  1222. And in Advanced 
  1223. Features, you'll see how 
  1224. ObjectVision lets you 
  1225. easily add sophisticated 
  1226. capabilities with 
  1227. multiple data links and 
  1228. formats, filters and 
  1229. locates, custom @ 
  1230. functions and more. 
  1231. x
  1232.  
  1233. Don't miss the Sample 
  1234. Applications.
  1235.  
  1236. To further illustrate the 
  1237. power of ObjectVision 
  1238. 2.1, we've included 
  1239. more examples of 
  1240. ObjectVision sample 
  1241. applications on this 
  1242. Disk. 
  1243.  
  1244. You'll see linking to 
  1245. dBASE and Paradox 
  1246. tables on the same form, 
  1247. one-to-many, and many-
  1248. to-many relationships as 
  1249. well. 
  1250.  
  1251. Press F2 to continue.
  1252. x
  1253.  
  1254. And don't forget, we're 
  1255. backing this Trial Disk 
  1256. with the same world 
  1257. class support we give all 
  1258. Borland products. So at 
  1259. any time if you have 
  1260. questions, just call 
  1261. Borland Technical 
  1262. Support at 
  1263. 1-408-461-9144. 
  1264.  
  1265. So click ahead. You're 
  1266. well on your way to 
  1267. becoming an 
  1268. ObjectVision developer!  
  1269. x
  1270.  
  1271.